function foo() {
 console.log(a);
}
function bar() {
 var a = 10;
 foo();
}
var a = 1;
bar();
